<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"/>
    <title>报警分析</title>
    <link rel="stylesheet" type="text/css" href="../../leaflet/leaflet.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/map.css"/>
    <script src="../../leaflet/leaflet.js"></script>
</head>
<body>
<script>
    var lat1 = 34.26327;
    var lng1 = 112.715096;
    var mLat = 34.989103 - lat1;
    var mLng = 114.21727 - lng1;
</script>
<div id="map"></div>
<script src="../../js/mapSource.js"></script>
<script src="../../js/lib/jquery-3.2.1.min.js"></script>
<script src="../../js/layer.js"></script>
<script src="../../js/common.js"></script>
<!--<script src="leaflet/leaflet-heat.js"></script>-->
<script src="../../leaflet/leaflet-div-heatmap.js"></script>
<script>
    layerManager.setMap(map);
    layerManager.setBaseLayer(BaseLayers.getMapBoxUrl(), BaseLayers.getLayerDetails(0).id, BaseLayers.getToken());
    map.fitBounds([[lat1, lng1],
        [34.989103, 114.21727]]);
    var heatmap = new L.DivHeatmapLayer();
    heatmap.addTo(map);
    addPoint();
    function addPoint() {
        heatmap.testAddData();
        window.setTimeout(addPoint, 2000);
    }
</script>
</body>
</html>